﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Xml;
using System.IO;
using System.Windows.Documents;
using Clipping.Infrastructure.Models;

namespace ClippingMaster
{
    public class NewsSummaryConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            News news = value as News;
            if (news == null)
                return null;
            else
            {
                return null;
                //string xaml = HTMLConverter.HtmlToXamlConverter.ConvertHtmlToXaml(news.Summary, true);
                //return System.Windows.Markup.XamlReader.Load(new XmlTextReader(new StringReader(xaml))) as FlowDocument;
            }
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
